﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo12
{
    class Shape
    {
        private string color;
        public string Color
        {
            get { return color; }
            set { color = value; }
        }
        public virtual void GetArea()//虚方法
        {
            Console.WriteLine("开始计算面积");
        }
    }
}
